using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Admin_UserControls_LoginUserZone : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UpdateView();
    }

    public void UpdateView()
    {
        if (Request.IsAuthenticated && WebSession.OnlineUser != null)
        {
            this.ProfileLink.InnerHtml = HttpUtility.HtmlEncode(WebSession.OnlineUser.Ten);
        }

        this.forgotPasswordLink.HRef = ResolveUrl(string.Format("~/{0}", SitePages.BO_ForgotPassword));
        this.logoutLink.HRef = ResolveUrl(string.Format("~/{0}", SitePages.BO_Logout));

    }
}
